﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02000471 RID: 1137
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class EnterRogueScRsp : IMessage<EnterRogueScRsp>, IMessage, IEquatable<EnterRogueScRsp>, IDeepCloneable<EnterRogueScRsp>, IBufferMessage
	{
		// Token: 0x17000EA5 RID: 3749
		// (get) Token: 0x06003336 RID: 13110 RVA: 0x0008CCFF File Offset: 0x0008AEFF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<EnterRogueScRsp> Parser
		{
			get
			{
				return EnterRogueScRsp._parser;
			}
		}

		// Token: 0x17000EA6 RID: 3750
		// (get) Token: 0x06003337 RID: 13111 RVA: 0x0008CD06 File Offset: 0x0008AF06
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return EnterRogueScRspReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000EA7 RID: 3751
		// (get) Token: 0x06003338 RID: 13112 RVA: 0x0008CD18 File Offset: 0x0008AF18
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return EnterRogueScRsp.Descriptor;
			}
		}

		// Token: 0x06003339 RID: 13113 RVA: 0x0008CD1F File Offset: 0x0008AF1F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterRogueScRsp()
		{
		}

		// Token: 0x0600333A RID: 13114 RVA: 0x0008CD28 File Offset: 0x0008AF28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterRogueScRsp(EnterRogueScRsp other) : this()
		{
			this.lineup_ = ((other.lineup_ != null) ? other.lineup_.Clone() : null);
			this.scene_ = ((other.scene_ != null) ? other.scene_.Clone() : null);
			this.rogueGameInfo_ = ((other.rogueGameInfo_ != null) ? other.rogueGameInfo_.Clone() : null);
			this.rotateInfo_ = ((other.rotateInfo_ != null) ? other.rotateInfo_.Clone() : null);
			this.retcode_ = other.retcode_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600333B RID: 13115 RVA: 0x0008CDC8 File Offset: 0x0008AFC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public EnterRogueScRsp Clone()
		{
			return new EnterRogueScRsp(this);
		}

		// Token: 0x17000EA8 RID: 3752
		// (get) Token: 0x0600333C RID: 13116 RVA: 0x0008CDD0 File Offset: 0x0008AFD0
		// (set) Token: 0x0600333D RID: 13117 RVA: 0x0008CDD8 File Offset: 0x0008AFD8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public LineupInfo Lineup
		{
			get
			{
				return this.lineup_;
			}
			set
			{
				this.lineup_ = value;
			}
		}

		// Token: 0x17000EA9 RID: 3753
		// (get) Token: 0x0600333E RID: 13118 RVA: 0x0008CDE1 File Offset: 0x0008AFE1
		// (set) Token: 0x0600333F RID: 13119 RVA: 0x0008CDE9 File Offset: 0x0008AFE9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public SceneInfo Scene
		{
			get
			{
				return this.scene_;
			}
			set
			{
				this.scene_ = value;
			}
		}

		// Token: 0x17000EAA RID: 3754
		// (get) Token: 0x06003340 RID: 13120 RVA: 0x0008CDF2 File Offset: 0x0008AFF2
		// (set) Token: 0x06003341 RID: 13121 RVA: 0x0008CDFA File Offset: 0x0008AFFA
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueInfo RogueGameInfo
		{
			get
			{
				return this.rogueGameInfo_;
			}
			set
			{
				this.rogueGameInfo_ = value;
			}
		}

		// Token: 0x17000EAB RID: 3755
		// (get) Token: 0x06003342 RID: 13122 RVA: 0x0008CE03 File Offset: 0x0008B003
		// (set) Token: 0x06003343 RID: 13123 RVA: 0x0008CE0B File Offset: 0x0008B00B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RogueMapRotateInfo RotateInfo
		{
			get
			{
				return this.rotateInfo_;
			}
			set
			{
				this.rotateInfo_ = value;
			}
		}

		// Token: 0x17000EAC RID: 3756
		// (get) Token: 0x06003344 RID: 13124 RVA: 0x0008CE14 File Offset: 0x0008B014
		// (set) Token: 0x06003345 RID: 13125 RVA: 0x0008CE1C File Offset: 0x0008B01C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Retcode
		{
			get
			{
				return this.retcode_;
			}
			set
			{
				this.retcode_ = value;
			}
		}

		// Token: 0x06003346 RID: 13126 RVA: 0x0008CE25 File Offset: 0x0008B025
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as EnterRogueScRsp);
		}

		// Token: 0x06003347 RID: 13127 RVA: 0x0008CE34 File Offset: 0x0008B034
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(EnterRogueScRsp other)
		{
			return other != null && (other == this || (object.Equals(this.Lineup, other.Lineup) && object.Equals(this.Scene, other.Scene) && object.Equals(this.RogueGameInfo, other.RogueGameInfo) && object.Equals(this.RotateInfo, other.RotateInfo) && this.Retcode == other.Retcode && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06003348 RID: 13128 RVA: 0x0008CEC4 File Offset: 0x0008B0C4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.lineup_ != null)
			{
				num ^= this.Lineup.GetHashCode();
			}
			if (this.scene_ != null)
			{
				num ^= this.Scene.GetHashCode();
			}
			if (this.rogueGameInfo_ != null)
			{
				num ^= this.RogueGameInfo.GetHashCode();
			}
			if (this.rotateInfo_ != null)
			{
				num ^= this.RotateInfo.GetHashCode();
			}
			if (this.Retcode != 0U)
			{
				num ^= this.Retcode.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06003349 RID: 13129 RVA: 0x0008CF5B File Offset: 0x0008B15B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600334A RID: 13130 RVA: 0x0008CF63 File Offset: 0x0008B163
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600334B RID: 13131 RVA: 0x0008CF6C File Offset: 0x0008B16C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.scene_ != null)
			{
				output.WriteRawTag(10);
				output.WriteMessage(this.Scene);
			}
			if (this.rotateInfo_ != null)
			{
				output.WriteRawTag(50);
				output.WriteMessage(this.RotateInfo);
			}
			if (this.Retcode != 0U)
			{
				output.WriteRawTag(56);
				output.WriteUInt32(this.Retcode);
			}
			if (this.rogueGameInfo_ != null)
			{
				output.WriteRawTag(98);
				output.WriteMessage(this.RogueGameInfo);
			}
			if (this.lineup_ != null)
			{
				output.WriteRawTag(114);
				output.WriteMessage(this.Lineup);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600334C RID: 13132 RVA: 0x0008D01C File Offset: 0x0008B21C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.lineup_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Lineup);
			}
			if (this.scene_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.Scene);
			}
			if (this.rogueGameInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RogueGameInfo);
			}
			if (this.rotateInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.RotateInfo);
			}
			if (this.Retcode != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Retcode);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600334D RID: 13133 RVA: 0x0008D0BC File Offset: 0x0008B2BC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(EnterRogueScRsp other)
		{
			if (other == null)
			{
				return;
			}
			if (other.lineup_ != null)
			{
				if (this.lineup_ == null)
				{
					this.Lineup = new LineupInfo();
				}
				this.Lineup.MergeFrom(other.Lineup);
			}
			if (other.scene_ != null)
			{
				if (this.scene_ == null)
				{
					this.Scene = new SceneInfo();
				}
				this.Scene.MergeFrom(other.Scene);
			}
			if (other.rogueGameInfo_ != null)
			{
				if (this.rogueGameInfo_ == null)
				{
					this.RogueGameInfo = new RogueInfo();
				}
				this.RogueGameInfo.MergeFrom(other.RogueGameInfo);
			}
			if (other.rotateInfo_ != null)
			{
				if (this.rotateInfo_ == null)
				{
					this.RotateInfo = new RogueMapRotateInfo();
				}
				this.RotateInfo.MergeFrom(other.RotateInfo);
			}
			if (other.Retcode != 0U)
			{
				this.Retcode = other.Retcode;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600334E RID: 13134 RVA: 0x0008D1A8 File Offset: 0x0008B3A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600334F RID: 13135 RVA: 0x0008D1B4 File Offset: 0x0008B3B4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 50U)
				{
					if (num == 10U)
					{
						if (this.scene_ == null)
						{
							this.Scene = new SceneInfo();
						}
						input.ReadMessage(this.Scene);
						continue;
					}
					if (num == 50U)
					{
						if (this.rotateInfo_ == null)
						{
							this.RotateInfo = new RogueMapRotateInfo();
						}
						input.ReadMessage(this.RotateInfo);
						continue;
					}
				}
				else
				{
					if (num == 56U)
					{
						this.Retcode = input.ReadUInt32();
						continue;
					}
					if (num == 98U)
					{
						if (this.rogueGameInfo_ == null)
						{
							this.RogueGameInfo = new RogueInfo();
						}
						input.ReadMessage(this.RogueGameInfo);
						continue;
					}
					if (num == 114U)
					{
						if (this.lineup_ == null)
						{
							this.Lineup = new LineupInfo();
						}
						input.ReadMessage(this.Lineup);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04001418 RID: 5144
		private static readonly MessageParser<EnterRogueScRsp> _parser = new MessageParser<EnterRogueScRsp>(() => new EnterRogueScRsp());

		// Token: 0x04001419 RID: 5145
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400141A RID: 5146
		public const int LineupFieldNumber = 14;

		// Token: 0x0400141B RID: 5147
		private LineupInfo lineup_;

		// Token: 0x0400141C RID: 5148
		public const int SceneFieldNumber = 1;

		// Token: 0x0400141D RID: 5149
		private SceneInfo scene_;

		// Token: 0x0400141E RID: 5150
		public const int RogueGameInfoFieldNumber = 12;

		// Token: 0x0400141F RID: 5151
		private RogueInfo rogueGameInfo_;

		// Token: 0x04001420 RID: 5152
		public const int RotateInfoFieldNumber = 6;

		// Token: 0x04001421 RID: 5153
		private RogueMapRotateInfo rotateInfo_;

		// Token: 0x04001422 RID: 5154
		public const int RetcodeFieldNumber = 7;

		// Token: 0x04001423 RID: 5155
		private uint retcode_;
	}
}
